package com.example.course.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName admin
 */
@TableName(value ="admin")
@Data
public class Admin implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "admin_id",type = IdType.AUTO)
    private Long adminId;

    /**
     * 昵称
     */
    @TableField(value = "admin_nick")
    private String adminNick;

    /**
     * 账号
     */
    @TableField(value = "admin_name")
    private String adminName;

    /**
     * 密码
     */
    @TableField(value = "admin_password")
    private String adminPassword;

    /**
     * 盐
     */
    @TableField(value = "admin_salt")
    private String adminSalt;

    /**
     * 原密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 禁用
     */
    @TableField(value = "is_banned")
    private Integer isBanned;

    /**
     * 逻辑删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * 联系电话
     */
    @TableField(value = "admin_phone")
    private Long adminPhone;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}